"""
@name : 容器类型作业
@author : yinbangyou
@projectname: tianlongbabu
"""
#小练习
# print("欢迎使用用户检测系统")
# user = {'root':'123456','admin':'admin'}
# while True:
#     usrname = input("请输入用户名：")
#     password = input("请输入密码：")
#     if usrname in user.keys() and password == user[usrname]:
#             print ("验证成功")
#     else:
#          print(f"验证失败")
#     q = input("退出请按quit，继续查询请按Enter")
#     if q == 'quit' :
#         break

#字典练习
# company = {'BOSS':'唐僧','CTO':'悟空','CFO':'八戒','搬砖':'沙僧','苦力':'白龙马'}
# print(company['CTO'])
# print(company['BOSS'])
# for i,j in company.items():
#     print(f"{i}:{j}")
# name = input("请输入你要查找的人：")
# if name in company.values():
#     print(f"{name}在company中")
# else:
#     print(f"{name}不在company中")

# #互送礼活动
# import random
# name1 = ['张三','李四','王二','麻子','小红','小黄','小花','小黑','小蓝','小橙']
# name2 = ['张三','李四','王二','麻子','小红','小黄','小花','小黑','小蓝','小橙']
# gift_list = {}
# i = 0
# number = random.randrange(1,len(name2),1)
# gift_list = {name1[i]:name2[number]}
# name2.pop(number)
# i+=1
# #首先确定第一对送礼关系，将第一个人从之后的循环中排除，为了让之后的字典添加不会覆盖之前的内容，也可以在选择语句内嵌一个选择语句
# while i<len(name1):
#     number = random.randrange(0,len(name2),1)
#     if name1[i] == name2[number]:
#         continue
#     else :
#         gift_list[name1[i]] = name2[number]
#         name2.pop(number)
#         i+=1
# for person1,person2 in gift_list.items():
#     print("{} 送礼物给 {}".format(person1,person2))


